package chp06;

public class Test2 {
    public static void main(String[] args) {
        //打印1-100的所有奇数 1,3,5,7....
        for(int i = 1; i <= 100; i++){
            if(i % 2 != 0){
                System.out.print(i+",");
            }
        }
        System.out.println();
        //打印从100到1 100,99,98....1
        for(int i = 100; i >= 1; i--){
            System.out.print(i+",");
        }
        System.out.println();
    }
}
